home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / utils / tlayr10 / layrglob.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-19  |  1022 b   |  47 lines

  1. // TILE LAYER v1.0
  2. // -------------------------------------------------
  3.  
  4. // Some useful costant definition
  5. // -------------------------------------------------
  6.  
  7. // General purpose constants
  8.  
  9. #define MAX_STRING_LEN       48
  10.  
  11. #define MAX_WORLD_X          (320 - 80)
  12. #define MAX_WORLD_Y          200
  13.  
  14. #define DEFAULT_BUF_LLENGTH  20
  15. #define DEFAULT_BUF_LINES    40
  16.  
  17. #define BUTTONXSIZE          72
  18. #define BUTTONYSIZE          12
  19.  
  20. // -------------------------------------------------
  21.  
  22. // Commands definition
  23.  
  24. enum commands {
  25.                CMD_QUIT= -1,
  26.                CMD_SCROLL_RIGHT= 1,
  27.                CMD_SCROLL_LEFT,
  28.                CMD_SCROLL_UP,
  29.                CMD_SCROLL_DOWN,
  30.  
  31.                CMD_LOAD_WORLD,
  32.                CMD_LOAD_SET,
  33.                CMD_SAVE_WORLD,
  34.  
  35.                CMD_REDIM_WORLD,
  36.                CMD_SHOW_INFO
  37.               };
  38.  
  39.  
  40. // Errors definition
  41.  
  42. enum errors {
  43.              MEM_ERR= 0,
  44.              LOAD_ERR,
  45.              MOUSE_ERR
  46.             };
  47.